import { post } from "@/utils/request";
import { AuthTokenVo } from "./type"

enum API {
  authorize = "/api/ais/auth/authorize",
  authToken = "/api/ais/auth/token",
}



// 构造网页授权链接
export const authorize = (data: string ) => post<any>({ url: `${API.authorize}/${data}` });

// 获取当前登录人的token
export const authToken = (data: AuthTokenVo) => post<any>({ url: API.authToken , data });
